package com.compass.framework.model

import java.io.Serializable


/**
 * Description： 患者信息Info
 * Date:2023/11/15 15:56
 */
data class PatientWap(
    val total: Int = 0,
    val newNum: Int = 0,
    val list: MutableList<PatientInfo>? = mutableListOf(),
)


data class PatientInfo(
    val id: String,
    val createTime: Long,
    val avatar: String?,
    val name: String,
    val birthday: String?,
    val wyyxAccId: String,
    val mobile:String,
    val patientAge: String,
    val sex: Int = 0,
    val status: Int = 0,
    val source: Int = 0, //1 是扫码 2是自主
    val defaultStatus: Int = 0,
    val tags: ArrayList<Tag>? = ArrayList(),
) : Serializable {

    fun getSexString(): String {
        return  when (sex) {
            1 -> {
                "男"
            }
            2 -> {
                "女"
            }
            else -> {
                "未知"
            }
        }
    }
}

/**
 * 患者标签  二级列表
 */
data class Tag(
    val id: Long?,
    val title: String, // 二级名称
    var isSelect: Boolean = false //是否选中状态
) : Serializable

